package Models;

public class InvPSOLines {
    private int id;
    private double priceOverRide;
    private int qty;
    private int qtyLeft;
    private boolean sold;
    private Supplies supply;
    private DiscountCode discount;
    
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public double getPriceOverRide() {
		return priceOverRide;
	}
	public void setPriceOverRide(double priceOverRide) {
		this.priceOverRide = priceOverRide;
	}
	public int getQty() {
		return qty;
	}
	public void setQty(int qty) {
		this.qty = qty;
	}
	public int getQtyLeft() {
		return qtyLeft;
	}
	public void setQtyLeft(int qtyLeft) {
		this.qtyLeft = qtyLeft;
	}
	public boolean isSold() {
		return sold;
	}
	public void setSold(boolean sold) {
		this.sold = sold;
	}
	public Supplies getSupply() {
		return supply;
	}
	public void setSupply(Supplies supply) {
		this.supply = supply;
	}
	public DiscountCode getDiscount() {
		return discount;
	}
	public void setDiscount(DiscountCode discount) {
		this.discount = discount;
	}
	
	public int getQtyFilled(){
		return(this.getQty() - this.getQtyLeft());
	}
}
